export default class AvoidNullCallable {
    private nullCall: () => void;

    constructor()
    {
        this.nullCall = () => {};
    }
    protected avoidNullCall(cb: any): any
    {
        if(cb != null && cb != undefined) { return cb; }
        return this.nullCall;
    }
}